<?php
require_once('IControleNewsLetter.php');
require_once($_SERVER["DOCUMENT_ROOT"] . '/Esquina_da_TI/DAO/RepositorioNewsLetter.php');
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ControleNewsLetter
 *
 * @author Paulo
 */
class ControleNewsLetter implements IControleNewsLetter{
    private $repositorioNewsLetter;

    function __construct() {
        $this->repositorioNewsLetter = new RepositorioNewsLetter();
    }

    public function cadastrarEmail($email){
        return $this->repositorioNewsLetter->cadastrarEmail($email);
    }
    public function removerEmail($email){
        return $this->repositorioNewsLetter->removerEmail($email);
    }

    public function verificarEmail($email){
        return $this->repositorioNewsLetter->verificarEmail($email);
    }
    public function enviarNewsLetter($newsLetter){
        return $this->repositorioNewsLetter->enviarNewsLetter($newsLetter);
    }
}
?>
